﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Decorator
{
    class Program
    {
        static void Main(string[] args)
        {
            Phone phone = new Nokia();

            //贴膜
            Decorator sticker = new Sticker();
            //挂件
            Decorator accessories = new Accessories();

            //装饰过程
            sticker.Decorate(phone);    //添加贴膜
            accessories.Decorate(sticker);  //添加挂件
            accessories.Print();


        }
    }
}
